// 路由
import { createRouter, createWebHistory } from 'vue-router';

const router = createRouter({
    history: createWebHistory(),

    // 路由
    routes: [
        {
            path: '/',
            redirect: '/home'
        },
        {
            path: '/home',
            component: () => import('@/views/home/home.vue')
        },
        {
            path: '/search',
            component: () => import('@/views/search/index.vue')
        },
        {
            path: '/listen',
            component: () => import('@/views/listen/index.vue')
        },
        {
            path: '/test',
            component: () => import('@/views/test/index.vue')
        },
        {
            path: '/ont',
            component: () => import('@/views/ont/index.vue')
        },
        {
            path: '/paihangbang',
            component: () => import('../views/paihangbang/index.vue')
        },
        {
            path: '/playlist',
            component: () => import('../views/playlist/index.vue')
        }
    ]
})

export default router